package com.ypd.show.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 评论操作对象 tb_comment
 * 
 * @author ye
 * @date 2025-01-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long id;

    /** 关联的文章id */
    @Excel(name = "关联的文章id")
    private Long articleId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论用户用户名 */
    @Excel(name = "评论用户用户名")
    private String author;
    /**
     * 用户id
     */
    private Long userId;


}
